#include <iostream>
#include "rando.h"

int main()
{
	int prob = 0;
	std::cin >> prob;

	unsigned long num = 0; 
	unsigned long denom = 0;

	for(int i=0; i<1000000; i++)
	{
		if(randomSuccess(prob))
			num++;
		denom++;
		std::cout << float(num)/float(denom) << std::endl; 
	}

	return 0; 
}
